package ae.pcfc.etks.online.itworx.ehs.web.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name = "T_EHS_SERVICE")
@SequenceGenerator(name = "EHS_SERVICE_ID_SEQ", sequenceName = "EHS_SERVICE_ID_SEQ", initialValue = 1, allocationSize = 1)
public class Service extends AuditableEntity implements Serializable {

	public static final Service ofcService = new Service(1, "EHS_OFC", "EHS_OFC Description");
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name = "EHS_SERVICE_ID")
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "EHS_SERVICE_ID_SEQ")
	private long id;
	@Column(name = "NAME", nullable = false, length = 50)
	private String name;
	@Column(name = "DESCRIPTION", length = 50)
	private String description;

	public Service() {

	}

	public Service(int id) {
		this.id = id;
	}

	public Service(long id, String name) {
		this.id = id;
		this.name = name;
	}

	public Service(long id, String name, String description) {
		this.id = id;
		this.name = name;
        this.description = description;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

}
